<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
import auth from './utils/auth'

export default {
  name: 'app',
  mounted(){
    if(auth()){
      this.$store.dispatch('profile')
    }
  }
}
</script>

<style lang="less">
  html,body,#app {
    height: 100%;
    overflow: auto;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  }
</style>
